using System;
using System.Collections.Generic;
using System.Text;
namespace GSM.BusinessLayer
{
	public class Customer_Message: BusinessObjectBase
	{

		#region InnerClass
		public enum Customer_MessageFields
		{
			CustomerID,
			MessageMarketID,
			Date,
			MessageStatus,
			Type
		}
		#endregion

		#region Data Members

			int _customerID;
			int _messageMarketID;
			DateTime? _date;
			bool? _messageStatus;
			int? _type;

		#endregion

		#region Properties

		public int  CustomerID
		{
			 get { return _customerID; }
			 set
			 {
				 if (_customerID != value)
				 {
					_customerID = value;
					 PropertyHasChanged("CustomerID");
				 }
			 }
		}

		public int  MessageMarketID
		{
			 get { return _messageMarketID; }
			 set
			 {
				 if (_messageMarketID != value)
				 {
					_messageMarketID = value;
					 PropertyHasChanged("MessageMarketID");
				 }
			 }
		}

		public DateTime?  Date
		{
			 get { return _date; }
			 set
			 {
				 if (_date != value)
				 {
					_date = value;
					 PropertyHasChanged("Date");
				 }
			 }
		}

		public bool?  MessageStatus
		{
			 get { return _messageStatus; }
			 set
			 {
				 if (_messageStatus != value)
				 {
					_messageStatus = value;
					 PropertyHasChanged("MessageStatus");
				 }
			 }
		}

		public int?  Type
		{
			 get { return _type; }
			 set
			 {
				 if (_type != value)
				 {
					_type = value;
					 PropertyHasChanged("Type");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("CustomerID", "CustomerID"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("MessageMarketID", "MessageMarketID"));
		}

		#endregion

	}
}
